package com.tim.util;

import ch.qos.logback.classic.Level;
import ch.qos.logback.classic.Logger;
import org.slf4j.LoggerFactory;

public class LogUtil {

    public static void changeLogbackLevel(String name, String level) {
       Logger logger = (Logger) LoggerFactory.getLogger(name);
       Level newLevel = Level.toLevel(level, Level.INFO);
       logger.setLevel(newLevel);
       logger.setAdditive(true);
    }


}
